<template>
  <div class="cart-list">
    <scroll class="content" :pull-up-load="true" ref="scroll">
      <cart-list-item
        v-for="item in getCartList"
        :key="item.iid"
        :list-item="item"
      ></cart-list-item>
    </scroll>
  </div>
</template>
<script>
import Scroll from "components/common/scroll/Scroll";
import CartListItem from "./CartListItem";

import { mapGetters } from "vuex";
export default {
  name: "cartlist",
  data() {
    return {};
  },
  components: {
    Scroll,
    CartListItem,
  },
  computed: {
    ...mapGetters(["getCartList"]),
  },
  activated() {
    this.$refs.scroll.refresh();
  },
};
</script>
<style scoped>
.cart-list {
  height: 100%;
}

.content {
  height: calc(100% - 49px - 88px);
  overflow: hidden;
}
</style>
